package com.ssh.service.impl;

import org.springframework.stereotype.Service;

import com.ssh.entity.User;
import com.ssh.service.UserService;
import com.ssh.service.base.BaseService;

@Service
public class UserServiceImpl extends BaseService implements UserService{
	
	public User selectById(int id) {
		User user = userDao.findById(id);
		return user;
	}
	
	public User doUserLogin(User user) {
		System.out.println(user.getUsername()+" name:pwd "+user.getPassword());
		User user1 = userDao.findById(1);
		return user1;
	}

}
